package com.example.wanxiang.service.Impl;

import com.example.wanxiang.entity.ArticleAndCom;
import com.example.wanxiang.repository.ArticleAndComRepository;
import com.example.wanxiang.service.ArticleAndComService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleAndComImpl implements ArticleAndComService {


    @Resource
    private ArticleAndComRepository articleAndComRepository;

    @Override
    public List<ArticleAndCom> findByArticleId(String articleId) {
        return articleAndComRepository.findByArticleId(articleId);
    }
}
